Skip to content

T1282664#32814

Open
markallenramirez wants to merge 5 commits intoDevExpress:26_1from
markallenramirez:bug_T1282664/26_1
Open

T1282664#32814
markallenramirez wants to merge 5 commits intoDevExpress:26_1from
markallenramirez:bug_T1282664/26_1

Conversation

@markallenramirez
Copy link
Contributor

No description provided.

@markallenramirez markallenramirez self-assigned this Mar 6, 2026
@markallenramirez markallenramirez requested a review from a team as a code owner March 6, 2026 08:45
Copilot AI review requested due to automatic review settings March 6, 2026 08:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts DataGrid internal keyboard navigation focus initialization logic to further restrict when the focused cell position is updated during focusin events.

Changes:

  • Update focusinHandler to call _updateFocusedCellPosition only when the focus moved from an element within the RowsView (isRelatedTargetInRowsView).

Copilot AI review requested due to automatic review settings March 11, 2026 12:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment on lines 241 to 244
if (isCell && needSetFocusPosition) {
this._focusView();
this._updateFocusedCellPosition($element);
}
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change modifies focus behavior when a cell receives focus while focusedRowIndex is not set (< 0). There doesn’t appear to be a regression test that covers focusing a td in this state and asserting that keyboard navigation initializes its focused view correctly (and doesn’t throw / mis-handle subsequent focus updates). Please add a test (likely in packages/devextreme/testing/tests/DevExpress.ui.widgets.dataGrid/focus.tests.js or keyboardNavigation.keyboardController.tests.js) that triggers focusin on a data cell with focusedRowIndex: -1/undefined and validates the expected focus state.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants